<div class="row" style="margin-bottom: 20px; margin-top: -15px;">
    <div class="col-sm-12">
        <h3>
        	<i class="fa fa-edit" style="color:<?php echo $color?>"></i> <?php echo $title?>
        </h3>
    </div>
</div>
<div class="row">
	<div class="col-sm-12">
		<form action="<?php echo base_url('admin/episode/multi').'/'.$id_film;?>" id="frm_multi_New" class="form-horizontal" enctype="multipart/form-data" method="post">
			<div class="form-group">
                <label for="subject" class="col-sm-2 control-label">
                    Tên Phim
                </label>
                <div class="col-sm-10" style="padding-left:0px;">
                    <input type="text" class="form-control" readonly="" name="name" value = "<?php if(isset($film_name)){ echo $film_name['name'];}?>">
                </div>
            </div>
            
            <div class="form-group">
                <label for="subject" class="col-sm-2 control-label">
                    Server
                </label>
                <div class="col-sm-10" style="padding-left:0px;">
                    <select name="server" id="" class="form-control">
                        <?php if($result_server != NULL){ foreach($result_server as $value):  ?>
                            <option value="<?php echo $value['idserver']; ?>"><?php echo $value['nameserver'];?></option>
                        <?php endforeach;  } ?>
                    </select>
                </div>
            </div>

			<div class="form-group <?php if(form_error('multi') != NULL){echo 'has-error';}?>">
                <label class="col-sm-2 control-label" for="subject">Đăng nhiều tập</label>
                <div class="col-sm-10" style="padding-left:0px;">
                    <textarea style="padding-left: 10px;" name="multi" id="" placeholder="Tên tập | Liên kết‏" cols="128" rows="5"><?php echo set_value('multi');?></textarea>
                    <?php echo form_error('multi','<p class="help-block">','</p>');?>
                </div>
            </div>
		</form>
	</div>
</div>
<script>
	jQuery(document).ready(function($) {
		$('.btn-index').css({display:'none'});
        $('.btn-edit').css({display:'none'});
        $('.btn-copy').css({display:'none'});
        $('.btn-add').css({display:'inline-block'});
        $('.content input[type="checkbox"]').iCheck({checkboxClass: 'icheckbox_minimal'});
        $('.content input[type="radio"]').iCheck({radioClass: 'iradio_minimal'});
	});

	function New(){
        $(".content").mask("<?php echo 'Loading...'; ?>");
		$("#frm_multi_New").submit();
	}

    function back_to_list(){
    	$(".content").mask("<?php echo 'Loading...'; ?>");
    	var url = '<?php echo base_url("admin/film");?>';
        window.location.href = url;
    }
</script>